<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html><head><!--Converted with LaTeX2HTML 98.1 release (February 19th, 1998)
originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others --><title>LC-Display</title>




<meta name="description" content="LC-Display">
<meta name="keywords" content="htmlatex">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="706_files/htmlatex.css"><script charset="utf-8" id="injection_graph_func" src="706_files/injection_graph_func.js"></script></head><body bgcolor="#ffffff" lang="EN">

<h1><br clear="all"><center><table bgcolor="#0060f0"><tbody><tr><td><b><font color="#c0ffff" size="5">&nbsp;<a name="SECTION0001000000000000000000">
LC-Display</a>&nbsp;</font></b></td></tr></tbody></table></center>
</h1>

<p>
A friend of you has just bought a new computer. Until now, the most
powerful computer he ever used has been a pocket calculator. Now,
looking at his new computer, he is a bit disappointed, because he
liked the LC-display of his calculator so much. So you decide to write 
a program that displays numbers in an LC-display-like style on his computer.

</p><p>

</p><h2><font color="#0070e8"><a name="SECTION0001001000000000000000">
Input</a>&nbsp;</font>
</h2>

<p>
The input file contains several lines, one for each number to be
displayed. Each line contains two integers <i>s</i>, <i>n</i> (
<!-- MATH: $1 \le s \le 10, 0
\le n \le 99\,999\,999$ -->
<img src="706_files/706img1.gif" alt="$1 \le s \le 10, 0
\le n \le 99\,999\,999$" align="middle" border="0" height="30" width="234">), where <i>n</i> is the number to be displayed and <i>s</i>
is the size in which it shall be displayed.

</p><p>
The input file will be terminated by a line containing two zeros.
This line should not be processed.

</p><p>

</p><h2><font color="#0070e8"><a name="SECTION0001002000000000000000">
Output</a>&nbsp;</font>
</h2>

<p>
Output the numbers given in the input file in an LC-display-style
using <i>s</i> ``<tt>-</tt>'' signs for the horizontal segments and
<i>s</i> ``<tt>|</tt>'' signs for the vertical ones. Each digit occupies
exactly <i>s</i>+2 columns and 2<i>s</i>+3 rows. (Be sure to fill all the white space
occupied by the digits with blanks, also for the last digit.) There
has to be exactly one column of blanks between two digits.

</p><p>
Output a blank line after each number. 
(You will find a sample of each digit in the sample output.)

</p><p>

</p><h2><font color="#0070e8"><a name="SECTION0001003000000000000000">
Sample Input</a>&nbsp;</font>
</h2>

<p>
</p><pre>2 12345
3 67890
0 0
</pre>

<p>

</p><h2><font color="#0070e8"><a name="SECTION0001004000000000000000">
Sample Output</a>&nbsp;</font>
</h2>

<p>
</p><pre>      --   --        -- 
   |    |    | |  | |   
   |    |    | |  | |   
      --   --   --   -- 
   | |       |    |    |
   | |       |    |    |
      --   --        -- 

 ---   ---   ---   ---   --- 
|         | |   | |   | |   |
|         | |   | |   | |   |
|         | |   | |   | |   |
 ---         ---   ---       
|   |     | |   |     | |   |
|   |     | |   |     | |   |
|   |     | |   |     | |   |
 ---         ---   ---   --- 
</pre>

<p>

</p><p>
<br></p><hr>
<address>
<i>Miguel A. Revilla</i>
<br><i>2000-02-09</i>
</address>
</body></html>